﻿<UserControl x:Class="FullViewer.Plugin.FullImageView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:y="clr-namespace:WpfImageDuplicates;assembly=WpfImageDuplicates"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d">
    <ScrollViewer x:Name="scroller" ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto" Focusable="False">
        <Grid x:Name="grid" Width="Auto" HorizontalAlignment="Stretch" Height="Auto" VerticalAlignment="Stretch">
            <!--FileImageViewModel="{Binding Mode=OneWay}"-->
            <y:ImageControl SizeChanged="imgMain_SizeChanged"
                Grid.ColumnSpan="2" Grid.Column="0" Margin="0,0,0,0" x:Name="imgMain" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="Auto" Height="Auto"/>            
            <Canvas Grid.Column="0" Width="Auto" HorizontalAlignment="Left" VerticalAlignment="Top" Height="Auto">
                <y:ImageInfoView Margin="0,0,0,0" x:Name="imageInfo" FileImageViewModel="{Binding Mode=OneWay}" HorizontalAlignment="Left" VerticalAlignment="Top"/>
            </Canvas>
            <Canvas Grid.Column="0" HorizontalAlignment="Right" Width="18" VerticalAlignment="Top" Margin="0,0,14,0">
                <y:ThumbViewCommandBar ShowViewerTopmostButton="True" Width="18" x:Name="commandBar" FileImageViewModel="{Binding}"  
                                       RequestResize="commandBar_RequestResize"
                                       RequestResizeDelete="commandBar_RequestResizeDelete"
                                       RequestRotate="commandBar_RequestRotate"
                                       RequestDelete="commandBar_RequestDelete"/>
            </Canvas>
        </Grid>
    </ScrollViewer>
</UserControl>
